import { type RouteRecordRaw } from 'vue-router'
import TopMenu from '@/components/Menu.vue'
export const microAppRoutes: Array<RouteRecordRaw> = [
    {
        path: '/microApp/vue2-app/:chapters*',
        name: 'MicroAppVue2App',
        components: {
            default: () => import('@/views/microApp.vue'),
            TopMenu
        }
    },
    {
        path: '/microApp/react-app/:chapters*',
        name: 'MicroAppReactApp',
        components: {
            default: () => import('@/views/microApp.vue'),
            TopMenu
        }
    },
    {
        path: '/microApp/vue3-vite-app/:chapters*',
        name: 'MicroAppVue3ViteApp',
        components: {
            default: () => import('@/views/microApp.vue'),
            TopMenu
        }
    },
    // 配置中心
    {
        path: '/microApp/setting-app/:chapters*',
        name: 'MicroAppSettingApp',
        components: {
            default: () => import('@/views/microApp.vue'),
            TopMenu
        }
    },
    // 统计中心子应用
    {
        path: '/microApp/statistics-app/:chapters*',
        name: 'MicroAppStatisticsApp',
        components: {
            default: () => import('@/views/microApp.vue'),
            TopMenu
        }
    },
    {
        path: '/microApp/admin/:chapters*',
        name: 'MicroAppAdminApp',
        components: {
            default: () => import('@/views/microApp.vue'),
            TopMenu
        }
    }
]